Makes is consistent with error handling for setting default sink
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31
Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34
Bug-Debian: https://bugs.debian.org/
1126514
Applied-upstream: gnome-shell 50, commit:
798230599950607ec285daecd070f5bcb28580e4
Gbp-Pq: Topic libgvc
Gbp-Pq: Name mixer-control-Print-error-when-we-fail-to-set-default-sou.patch
if (stream != default_stream) {
g_debug ("change-input - attempting to swap over to stream %s",
gvc_mixer_stream_get_description (stream));
- gvc_mixer_control_set_default_source (control, stream);
+ if (!gvc_mixer_control_set_default_source (control, stream)) {
+ g_warning ("Failed to set default source from input %s",
+ gvc_mixer_ui_device_get_description (input));
+ }
}
}